package xyz.eden.boot.common.web.support.domain.gateway;


import xyz.eden.boot.common.web.support.domain.ability.model.BaseOperate;

/**
 * BaseOperateGateway
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2023/4/29 17:18
 */
public interface BaseOperateGateway<Model extends BaseOperate> {

    /**
     * 添加信息
     *
     * @param model
     * @return
     */
    Long addInfo(Model model) throws Exception;

    /**
     * 通过 id 更新信息
     *
     * @param model
     * @return
     */
    Boolean updateInfoById(Model model) throws Exception;

    /**
     * 通过参数更新信息
     *
     * @param model
     * @return
     */
    Boolean updateInfoByParam(Model model) throws Exception;
}
